<template>
  <starModal :ref="ref" :config="config" @click="click">
    <!-- <editStoreView :data="dataSet.storePositionFormData"></editStoreView> -->
  </starModal>
</template>

<script>
const ref = "modal";
export default {
  name: ref,
  inject: ["anc"],
  data() {
    return {
      ref,
      config: {
        show: false,
        title: "新增",
        loading: false,
        width: 0,
        height: "auto",
        draggable: false,
        mask: true,
        closable: true,
        widthRatio: 0.5,
        buttons: [
          {
            show:true,
            type: "default",
            text: "取消",
          },
          {
            show:true,
            type: "primary",
            text: "确定",
            loading: false,
          },
        ],
      },
    };
  },
  props: {
    dataSet: {
      default: () => {
        return {};
      },
    },
  },
  watch: {},
  computed: {},
  created() {},
  mounted() {
    this.$nextTick(() => {
      this.$set(this.anc.vms, this.ref, this);
    });
  },
  methods: {
    click(btn) {
      if (btn.text == "确定") {
        btn.loading = true;
        this.anc[this.ref + "Ok"](btn.loading);
      } else {
        this.config.show = false;
      }
    },
  },
};
</script>
<style scoped lang="scss">
</style>
